import { postWithLoadTip, get } from '@/utils/request'

//默认导出的是一个对象

export default {
	login: (query) => postWithLoadTip(`/api/admin/login`, query),
	logout: () => get(`/api/admin/logout`),
	getInfo: (query) => get(`/api/admin/info`, {}),
	refreshToken: () => get(`/api/refreshToken`, {}),
}
